package org.itcast.travel.pojo;

import java.time.LocalDateTime;
import java.util.List;

public class BlogAndUser extends Blog{
    private String name;
    private String avatar;

    private Integer id;

    private Integer userId;

    private String title;

    private Integer likeCount;

    private Integer collectCount;

    private Integer commentCount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String content;

    private List<Image> images;

    public String getAvatar() {
        return avatar;
    }

    @Override
    public String toString() {
        return "BlogAndUser{" +
                "avatar='" + avatar + '\'' +
                ", username='" + name + '\'' +
                ", id=" + id +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", likeCount=" + likeCount +
                ", collectCount=" + collectCount +
                ", commentCount=" + commentCount +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", content='" + content + '\'' +
                ", images=" + images +
                '}';
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public Integer getCollectCount() {
        return collectCount;
    }

    @Override
    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    @Override
    public Integer getCommentCount() {
        return commentCount;
    }

    @Override
    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    @Override
    public String getContent() {
        return content;
    }

    @Override
    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public List<Image> getImages() {
        return images;
    }

    @Override
    public void setImages(List<Image> images) {
        this.images = images;
    }

    @Override
    public Integer getLikeCount() {
        return likeCount;
    }

    @Override
    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    @Override
    public String getTitle() {
        return title;
    }

    @Override
    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public Integer getUserId() {
        return userId;
    }

    @Override
    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public BlogAndUser() {
    }

    public BlogAndUser(String avatar, Integer collectCount, Integer commentCount, String content, LocalDateTime createTime, Integer id, List<Image> images, Integer likeCount, String title, LocalDateTime updateTime, Integer userId, String name) {
        this.avatar = avatar;
        this.collectCount = collectCount;
        this.commentCount = commentCount;
        this.content = content;
        this.createTime = createTime;
        this.id = id;
        this.images = images;
        this.likeCount = likeCount;
        this.title = title;
        this.updateTime = updateTime;
        this.userId = userId;
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
